package com.liuyang.second.concurrency.chapter1;

public class SingletonObject4 {

    private SingletonObject4() {
    }

    private static class InstanceHolder{
        private final static SingletonObject4 instance = new SingletonObject4();
    }

    public SingletonObject4 getInstance(){
        return InstanceHolder.instance;
    }

}
